<template>
  <div class="box">
    <div class="hedr">
      <span>{{ title }}</span
      ><img src="/static/icon/del.png" @click="clickClose" />
    </div>
    <div class="con">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
import { computed } from 'vue'
const props = defineProps({
  title: {
    type: String,
    default: ''
  },
  popShow: {
    type: Boolean,
    default: false
  }
})
const emits = defineEmits(['update:popShow'])
const popShow = computed({
  get: () => props.popShow,
  set: (val) => {
    emits('update:popShow', val)
  }
})
const clickClose = () => {
  popShow.value = false
}
</script>
<style lang="scss" scoped>
.box {
  // background: rgba(0, 52, 82, 0.5);
  background: url(/static/icon/nav29.png) no-repeat;
  background-size: 100% 100%;
  width: 300px;
  // height: 200px;
  position: fixed;
  bottom: 40px;
  left: 10px;
  border-radius: 5px;
  z-index: 9;
  padding: 0 20px;
  .hedr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px 0;
    color: #fff;
    // border-bottom: 1px solid #ededed;
    // background-color: rgba(0, 52, 82, 0.5);
    span {
      background: url(/static/icon/nav28.png) no-repeat;
      background-size: 100% 100%;
      height: 32px;
      line-height: 32px;
      width: 160px;
      padding-left: 40px;
      display: inline-block;
    }
    img {
      width: 25px;
      height: 25px;
      cursor: pointer;
    }
  }

  .con {
    padding: 10px 10px 20px 10px;
  }
}
</style>
